-- GENERATED SPELL FOR [Gelkis Scout] --


function spell0_4647(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4647', 521, 1)
end

function Sorts_4647(pUnit, Event)
local choix_sorts_4647 = math.random(0, 0)
if choix_sorts_4647 == 0 then
pUnit:RegisterEvent('spell0_4647', 1, 1)
end
end

function mob4647_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4647', math.random(1500, 3000), 1)
end

function mob4647_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4647_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4647_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4647, 1, 'mob4647_Action')
RegisterUnitEvent(4647, 2, 'mob4647_Leave')
RegisterUnitEvent(4647, 3, 'mob4647_Kill')
RegisterUnitEvent(4647, 4, 'mob4647_Die')
